package com.boxuegu.guanweihua25.databinding;

import com.boxuegu.guanweihua25.databinding.model.BannerModel;
import com.boxuegu.guanweihua25.databinding.model.RetrofitLoginModel;

import retrofit2.Call;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;


public interface Apis {

    @Headers("Content-Type:application/x-www-form-urlencoded")
    @POST("banner")
    Call<BannerModel> getBanner();

    @Headers("Content-Type:application/x-www-form-urlencoded")
    @POST("login")
    Call<RetrofitLoginModel> getLogin(@Query("username")String name,@Query("password")String pwd);
}
